package com.moviemetagetter.ui.list;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import javax.swing.AbstractListModel;

public class FileListModel extends AbstractListModel{

	private List<File> files;
	
	public FileListModel(){
		super();
		files = new ArrayList<File>();
	}
	
	public FileListModel(List<File> data){
		super();
		files = data;
	}
	
	@Override
	public Object getElementAt(int index) {
		return files.get(index);
	}

	@Override
	public int getSize() {
		return files.size();
	}
}
